import request from "@/utils/request";

export function getArticle(path) {
    return request({
        url:path,
        method:'get'
    })
}

export function like(articleId) {
    return request({
        url:'/articles/' + articleId + '/like',
        method:'post'
    })
}

export function search(param) {
    return request({
        url:'/articles/search',
        method:'get',
        params:param
    })
}

export function getArchivesList(param) {
    return request({
        url:'/articles/archives',
        method:'get',
        params:param
    })
}
